#ifndef PLAYBACKFUNCS_H
#define PLAYBACKFUNCS_H
#include <windows.h>
#include <stdio.h>
#include <mmsystem.h>

#define BLOCK_SIZE 8192
#define BLOCK_COUNT 20

static CRITICAL_SECTION waveCriticalSection;
static WAVEHDR* waveBlocks;
static volatile int waveFreeBlockCount;
static int waveCurrentBlock;


extern WAVEHDR* allocateBlocks(int size, int count);
void freeBlocks(WAVEHDR* blockArray);
void writeAudio(HWAVEOUT hWaveOut, LPSTR data, int size);

#endif
